﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="dept.aspx.cs" Inherits="AnyOffice.general.hrms.query.dept" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <script Language="JavaScript">
function delete_user(hrms_id)
{
 msg='确认要删除该学生档案么？';
 if(window.confirm(msg))
 {
  URL="delete.aspx?hrms_id=" + hrms_id + "&dept_id=<%=ViewState["DeptId"]%>";
  window.location=URL;
 }
}

function open_hrms(hrms_id)
{
 URL="../detail.aspx?hrms_id="+hrms_id;
 myleft=(screen.availWidth-500)/2;
 mytop=150
 mywidth=600;
 myheight=500;
 window.open(URL,"read_hrms","height="+myheight+",width="+mywidth+",status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}
</script>
</head>
<body class="bodycolor" topmargin="5">
    <form id="form1" runat="server">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="/images/notify_open.gif" align="absmiddle"><span class="big3"> <a name="bottom">
        学生档案（<asp:Literal ID="litDeptName" runat="server"></asp:Literal>）-
        <asp:Literal ID="litUserNums" runat="server"></asp:Literal>人</span>
    </td>
  </tr>
</table>
    
        <asp:Repeater ID="rptHrms" runat="server">
        <HeaderTemplate>
        <table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3">
        <tr class="TableHeader">
          <td nowrap align="center">姓名</td>
          <td nowrap align="center">性别</td>
          <td nowrap align="center">出生年月</td>
          <td nowrap align="center">民族</td>
          <td nowrap align="center">籍贯</td>
          <td nowrap align="center">政治面貌</td>
          <td nowrap align="center">身份证号码</td>
          <td nowrap align="center">操作</td>
        </tr>
        </HeaderTemplate>
        <ItemTemplate>
        <tr class="TableLine1">
          <td nowrap align="center"><a href="javascript:open_hrms('<%#Eval("HrmsId")%>')"><%#Eval("UserName")%></a></td>
          <td nowrap align="center"><%#Convert.ToBoolean(Eval("Sex").ToString()) == true ? "男" : "女"%></td>
          <td nowrap align="center"><%#Eval( "Birthday") != DBNull.Value ? Convert.ToDateTime(Eval( "Birthday").ToString()).ToString("d") : ""%></td>
          <td nowrap align="center"><%#Eval("Nation")%></td>
          <td nowrap align="center"><%#Eval("NativePlace")%></td>
          <td nowrap align="center"><%#Eval("Politics")%></td>
          <td nowrap align="center"><%#Eval("CardNo")%></td>
          <td nowrap align="center">
          <a href="javascript:open_hrms('<%#Eval("HrmsId")%>')">查看</a>
          </td>
        </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
        <tr class="TableLine2">
          <td nowrap align="center"><a href="javascript:open_hrms('<%#Eval("HrmsId")%>')"><%#Eval("UserName")%></a></td>
          <td nowrap align="center"><%#Convert.ToBoolean(Eval("Sex").ToString()) == true ? "男" : "女"%></td>
          <td nowrap align="center"><%#Eval( "Birthday") != DBNull.Value ? Convert.ToDateTime(Eval( "Birthday").ToString()).ToString("d") : ""%></td>
          <td nowrap align="center"><%#Eval("Nation")%></td>
          <td nowrap align="center"><%#Eval("NativePlace")%></td>
          <td nowrap align="center"><%#Eval("Politics")%></td>
          <td nowrap align="center"><%#Eval("CardNo")%></td>
          <td nowrap align="center"><a href="javascript:open_hrms('<%#Eval("HrmsId")%>')">查看</a></td>
        </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
        </table>
        </FooterTemplate>
        </asp:Repeater>    
        <asp:Literal ID="litMessage" runat="server"></asp:Literal>
    </form>
</body>
</html>
